<template>
    <wl-panel title="新增下级部门" subTitle="" titleIcon="pop_xz">
        <template v-if="footerFlag" slot="panel_footer">
            <el-button @click="continueAdd" >继续新增</el-button>
            <el-button @click="addOrg" type="primary">保存</el-button>
        </template>
        <template slot="panel_body">
          <el-form :model="formData" :rules="rule" status-icon ref="orgAddForm" label-width="100px" class="demo-ruleForm">
            <wl-form-inner subTitle="基本信息">
                <template slot="inner_body">
                      <div class="wl-row">
                        <wl-form-item label="部门编号" :importance="false" prop="id" :itemData="formData">
                            <wl-input :disabled="true"  slot="input" slot-scope="col" class="wl-input-item" :rawData="col.columnData" field="id" placeholder="部门编号"></wl-input>
                        </wl-form-item>
                        <wl-form-item label="部门名称" prop="name" :itemData="formData">
                            <wl-input  slot="input" slot-scope="col" class="wl-input-item" :rawData="col.columnData" field="name" placeholder="输入部门名称"></wl-input>
                        </wl-form-item>
                    </div>
                    <div class="wl-row">
                        <wl-form-item label="负责人"  :importance="false"  prop="leader_list"   :itemData="formData">
                            <wl-arr-select reqUrl="/account/list.do" setW="460" slot="input" slot-scope="col" type="leader_list"  :rawData="col.columnData"></wl-arr-select>
                        </wl-form-item>
                    </div>
                    <div class="wl-row">
                        <wl-form-item class="wl-form-item-full-row" label="备注" :importance="false"  prop="remark" :itemData="formData">
                            <wl-input setW="460" slot="input" class="wl-input-item" slot-scope="col" placeholder="输入备注" :rawData="col.columnData" field="remark"></wl-input>
                        </wl-form-item>
                    </div>
                </template>
            </wl-form-inner>
          </el-form>
        </template>
    </wl-panel>
</template>
<script lang="ts" src="./org_add_panel.ts"></script>
